package com.qf.md.unit.dao;

import com.qf.entity.md.unit.MdUnitMeasure;
import com.qf.md.unit.param.UnitSearchParam;

import java.util.List;

public interface MdUnitMeasureDAO {
    /*
     * 分页查询所有计量单位
     */
    List<MdUnitMeasure> selectPage(UnitSearchParam unitSearchParam);
    /*
     * 添加一条数据
     */
    int insertMdUnitMeasure(MdUnitMeasure mdUnitMeasure);
    /*
     * 修改一条数据
     */
    MdUnitMeasure selectByPrimaryKey(Long measureId);

    int updateMdUnitMeasure(MdUnitMeasure mdUnitMeasure);
    List<MdUnitMeasure> selectByPrimaryKeyUnit();

    List<MdUnitMeasure> selectAllUnit();
    int deleteById(Long id);
    int deleteBatch(List<Long> ids);

    void insertBatchMdUnitMeasure(List<MdUnitMeasure> cachedDataList);
}
